no uid/gid mappings when building on core22 with multipass
Metadata
Current evaluation
No evaluation has been recorded for this issue yet.
Issue body
Snapcraft 7.2.3
When using Multipass as the build environment and core22 as the base, the project directory is mounted into /root/project without any uid/gid mappings, so it end up being owned by ubuntu:ubuntu, as opposed to root:root when using core20 as the base.
# build default core20 snap with multipass as build environment
snapcraft init
export SNAPCRAFT_BUILD_ENVIRONMENT=multipass
snapcraft
# project directory mounted with proper uid/gid mappings
multipass exec snapcraft-my-snap-name -- sudo ls -ld /root/project
drwxr-xr-x 1 root root 4096 Oct 31 16:05 /root/project
# build same snap with core22
sed -i s/core20/core22/ snap/snapcraft.yaml
snapcraft
# no more uid/gid mappings for mounted directory
multipass exec snapcraft-my-snap-name-on-amd64-for-amd64-133985 -- sudo ls -ld /root/project
drwxr-xr-x 2 ubuntu ubuntu 4096 Oct 31 15:59 /root/project
Evaluation history
No evaluation history available.